module.exports = options => {
    return async (req, res, next) => {
        //请求头上挂载一个Model模型
        req.Model = require(`../model/${req.params.resource}`)
        next()
    }
}